package health_system.health_system.websocket.Test.dto;

import health_system.health_system.dto.MomentCommentDTO;
import health_system.health_system.dto.MomentDTO;
import health_system.health_system.dto.MomentLikeDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MomentWebSocketResponse {
    private String type;
    private boolean success;
    private String message;
    private MomentDTO moment;
    private List<MomentDTO> moments;
    private MomentCommentDTO comment;
    private MomentLikeDTO like;
    private Long momentId;
    private Long commentId;
    private int totalPages;
    private int currentPage;
    private int totalElements;
    private List<String> mediaUrls;
    private boolean liked;
    
    public static MomentWebSocketResponse error(String message) {
        MomentWebSocketResponse response = new MomentWebSocketResponse();
        response.setType("ERROR");
        response.setSuccess(false);
        response.setMessage(message);
        return response;
    }
} 